<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡练习1+布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            color: #4d4c4a;
        }

        h4 {
            font-weight: 400;
        }

        a {
            text-decoration: none;
        }

        .mokuai {
            position: relative;
            width: 300px;
            height: 470px;
            border: 1px solid red;
            margin: 10px auto;
            background-color: #fff;
        }

        .mokuai img {
            width: 100%;
            height: 287px;
        }

        .mokuai h4:nth-of-type(1) {
            width: calc(100%-40px);
            height: 40px;
            background-color: #fff;
            line-height: 20px;
            font-size: 14px;
            margin: 0 10px 10px 10px;
        }

        .mokuai p:nth-of-type(1) {
            color: red;
            font-size: 18px;
            font-weight: 700;
            margin-left: 10px;
        }

        .mokuai p:nth-of-type(1)>span {
            color: #4d4c4a;
            text-decoration: line-through;
            font-size: 12px;
            font-weight: 400;
        }

        .mokuai>div {
            font-size: 10px;
            margin: 15px 10px;
        }

        .mokuai>div em {
            color: red;
        }

        .mokuai>div>div {
            width: 120px;
            height: 16px;
            display: inline-block;
            border: 1px solid #bc2815;
            border-radius: 8px;
            margin: 0 10px;
            vertical-align: middle;
        }

        .mokuai>div>div .bar_in {
            width: 87%;
            height: 14px;
            border-radius: 8px 0 0 8px;
            background-color: #bc2815;
        }

        .mokuai a {
            position: absolute;
            left: 50%;
            margin-left: -121px;
            display: inline-block;
            width: 243px;
            height: 41px;
            color: #fff;
            text-align: center;
            line-height: 41px;
            background-color: #bc2815;
        }
    </style>
</head>

<body>
    <div class="mokuai">
        <img src="images/iPhone4s.png" alt="apple手机图片" />
        <h4>Apple苹果iPhone 6s Plus（A1699）32G 金色 移动联通电信4G手机</h4>
        <p>￥6088
            <span>￥6988</span>
        </p>
        <div>已售
            <em>87%</em>
            <div class="bar">
                <div class="bar_in"></div>
            </div>
            剩余<em>29</em>件
        </div>
        <a href="#">立即抢购</a>
    </div>
</body>

</html>